export const addCache=( key:string, value:Object)=>{
    if(value){
       let data = JSON.stringify(value);
       localStorage.setItem(key,data);
    }
}
export const getCache=(key:string)=>{
    let cacheData = localStorage.getItem(key);
    if(cacheData){
        return JSON.parse(cacheData);
    }
    return null;
}